<LayoutTableSmall>
    <!-- 顶部 -->
    <template slot="top"></template>
    <!-- 其他 -->
    <template slot="other"></template>
    <!-- 搜索 -->
    <template slot="search">
        <el-form :inline="true" label-position="left" label-width="80px" :model="mixinTable_tableSearchData"
            @submit.native.prevent class="demo-form-inline">
            <!-- <el-form-item>
                <el-select v-model="mixinTable_tableSearchData.type" @change="mixinTable_searchData" style="width:100px"
                    placeholder="支付方式" clearable>
                    <el-option label="微信" value="1"></el-option>
                    <el-option label="支付宝" value="2"></el-option>
                    <el-option label="银行转账" value="3"></el-option>
                </el-select>
            </el-form-item> -->
            <!-- <el-form-item>
                <el-input clearable v-model="mixinTable_tableSearchData.real_name" placeholder="请输入收款账户名"
                    @change="mixinTable_searchData" style="width:200px">
                    <el-button slot="append" icon="el-icon-search" @click="mixinTable_searchData()"></el-button>
                </el-input>
            </el-form-item> -->
        </el-form>


    </template>
    <!-- 功能 -->
    <template slot="function">
        <el-button type="primary" @click="addCaptain()">新增队长</el-button>
    </template>
    <!-- 表格 -->
    <template slot="table">
        <el-table v-loading="mixinTable_loading" :data="mixinTable_tableData.list" border style="width: 100%;"
            :ref="mixinPage_vueName+'TableSmall'" height="100%"
            @selection-change="mixinTable_handleSelectionChangeTableSmall" :tree-props="{children: 'children'}"
            default-expand-all row-key="id">
            <el-table-column type="selection" width="50" align="center"></el-table-column>
            <el-table-column prop="level.name" label="等级名称">
            </el-table-column>
            <el-table-column prop="member.nickName" label="队长信息" width="80">
                <template slot-scope="scope">
                    <el-popover placement="right" width="300" trigger="click">
                        <div class="userBox">
                            <div class="icon">
                                <imageBox :src="scope.row.member.icon"></imageBox>
                            </div>
                            <div class="text">
                                <div class="name">{{scope.row.member.nickName}}</div>
                                <div class="id">ID:{{scope.row.member.memberCode}}</div>
                                <div class="mobile">电话:{{scope.row.member.mobile}}</div>
                            </div>
                        </div>
                        <div slot="reference" class="userShow">
                            <div class="icon">
                                <imageBox :src="scope.row.member.icon"></imageBox>
                            </div>
                            <div class="el-icon-more more"></div>
                        </div>
                    </el-popover>
                </template>
            </el-table-column>
            
            <el-table-column prop="allBonus" label="全部分红">
            </el-table-column>
            <el-table-column prop="stageBonus" label="极差分红">
            </el-table-column>
            <el-table-column prop="educateBonus" label="育人分红">
            </el-table-column>
            <el-table-column prop="transcendBonus" label="越级分红">
            </el-table-column>
            <el-table-column prop="equalBonus" label="平级分红">
            </el-table-column>
            
            <el-table-column prop="created_at" label="成为队长时间">
            </el-table-column>
            <el-table-column prop="active" label="状态" align="center">
                <template slot-scope="scope">
                    <StateIcon :type="scope.row.active == 0 ? 'success' : 'error'"></StateIcon>
                </template>
            </el-table-column>
            <el-table-column label="操作" width="300" align="center">
                <template slot-scope="scope">
                    <el-button @click="see(scope.row.member_id)">查看</el-button>

                    <el-button @click="enable(scope.row.member_id, scope.row.active)" v-if="scope.row.active == 0">禁用</el-button>
                    <el-button @click="enable(scope.row.member_id, scope.row.active)" v-if="scope.row.active == 1">启用</el-button>
                    <el-button @click="editBoxOpen({id:scope.row.member_id, data:scope.row})">团队成员</el-button>
                    <el-button type="danger" plain @click="mixinTable_selectTableDeleteData([scope.row])">删除</el-button>
                </template>
            </el-table-column>


        </el-table>

    </template>
    <!-- 表格选项 -->
    <!-- <template slot="options">
        <el-button :disabled="mixinTable_selectTableData.length<=0" @click="mixinTable_selectTableDeleteData()">
            删除已选</el-button>
        <el-button :disabled="mixinTable_selectTableData.length<=0"
            @click="mixinTable_clearSelectionChangeTableSmall()">取消选择
        </el-button>
    </template> -->
    <!-- 分页 -->
    <template slot="page">
        <el-pagination class="paginationStyle" v-if="mixinTable_pageData.total>0" background
            @current-change="mixinTable_pagingData($event)" :current-page="mixinTable_pageData.pageNum"
            :page-size.sync="$vFN.Constants.pageSize" layout="total, prev, pager, next,jumper"
            :total.sync="mixinTable_pageData.total">
        </el-pagination>
    </template>
</LayoutTableSmall>